﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class CookRobot : Robot
    {
        enum vegetable
        {
            老虎菜,
            蛋清羊尾,
            佛跳墙,
            松鼠桂鱼,
            清蒸帝王蟹,
            红烧熊掌,
            蚂蚁上树,
            木须肉,

        }
          public string Vegetable { get; set; }
        public CookRobot(string name) : base(name)
        {

        }

        public override void Speak()
        {
            Console.WriteLine("我会做{0}、{1}、{2}、{3}、{4}、{5}、{6}、{7}"
                , vegetable.佛跳墙, vegetable.木须肉, vegetable.清蒸帝王蟹, vegetable.红烧熊掌, vegetable.松鼠桂鱼,
                vegetable.老虎菜,vegetable.蚂蚁上树,vegetable.蛋清羊尾);
        }
        public void spake()
        {
            Console.WriteLine("您的{0}已经开始制作",this.Vegetable);
        }
    }
}
